package com.example.project.projectspringcloud.entity.sys;

import com.example.project.projectspringcloud.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class Dictionary extends BaseEntity {

    public Dictionary() {

    }

    private String name;

    private Integer value;

    private String alias;

    private String type;

    public Dictionary(Integer id) {
        super.setId(id);
    }

    public Dictionary(String type) {
        this.type = type;
    }

    public Dictionary(String type, Integer value) {
        this.type = type;
        this.value = value;
    }
}